#ifndef _ITEMS_H
#define _ITEMS_H

#include "Object.h"
#define ITEMS_GRAVITY		0.001
#define ITEMS_VX			0.1
#define ITEMS_VY			0.1

class Items : public Object
{
private:
	float min_X;
	float max_X;

	Sprite* p_light;
	Sprite* p_item;

	float count_time;
public:
	/*
	 *	Get/Set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Constructor/Destructor
	 */
	Items(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State);
	~Items();

	/*
	 *	Method
	 */
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF, Object* simon){}

	void render(int cameraX, int cameraY);
	void changeState(int obj_state);
};

#endif